/* HTML节点样式 */
.markdown-node-container{
 overflow: auto;
}
.markdown-node-content {
  padding: 12px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #262626;
  min-width: 100%;
  min-height: 100%;
}

.markdown-node-content h1,
.markdown-node-content h2,
.markdown-node-content h3,
.markdown-node-content h4,
.markdown-node-content h5,
.markdown-node-content h6 {
  margin: 0 0 8px 0;
  color: #1890ff;
  font-weight: 600;
}

.markdown-node-content h1 {
  font-size: 18px;
}

.markdown-node-content h2 {
  font-size: 16px;
}

.markdown-node-content h3 {
  font-size: 15px;
}

.markdown-node-content h4 {
  font-size: 14px;
}

.markdown-node-content h5 {
  font-size: 13px;
}

.markdown-node-content h6 {
  font-size: 12px;
}

.markdown-node-content p {
  margin: 0 0 8px 0;
}

.markdown-node-content ul,
.markdown-node-content ol {
  margin: 0 0 8px 0;
  padding-left: 20px;
}

.markdown-node-content li {
  margin-bottom: 4px;
}

.markdown-node-content strong {
  font-weight: 600;
  color: #262626;
}

.markdown-node-content em {
  font-style: italic;
  color: #595959;
}

.markdown-node-content code {
  background: #f5f5f5;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 12px;
}

.markdown-node-content pre {
  background: #f5f5f5;
  padding: 8px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 8px 0;
}

.markdown-node-content pre code {
  background: none;
  padding: 0;
}

.markdown-node-content blockquote {
  border-left: 4px solid #1890ff;
  padding-left: 12px;
  margin: 8px 0;
  color: #595959;
  font-style: italic;
}

.markdown-node-content a {
  color: #1890ff;
  text-decoration: none;
}

.markdown-node-content a:hover {
  text-decoration: underline;
}

/* 富文本节点样式 */
.rich-text-node-container {
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  // max-width: 350px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rich-text-node-container.ai-generated {
  border-color: #722ed1;
}

.rich-text-node-container.default {
  border-color: #52c41a;
}

.rich-text-node-header {
  background: linear-gradient(135deg, #52c41a, #73d13d);
  color: white;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.rich-text-node-container.ai-generated .rich-text-node-header {
  background: linear-gradient(135deg, #722ed1, #9254de);
}

.rich-text-node-content {
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #262626;
  max-height: 200px;
  overflow-y: auto;
}

.rich-text-node-content h1,
.rich-text-node-content h2,
.rich-text-node-content h3,
.rich-text-node-content h4,
.rich-text-node-content h5,
.rich-text-node-content h6 {
  margin: 0 0 6px 0;
  color: #1890ff;
  font-weight: 600;
}

.rich-text-node-content h1 {
  font-size: 16px;
}

.rich-text-node-content h2 {
  font-size: 15px;
}

.rich-text-node-content h3 {
  font-size: 14px;
}

.rich-text-node-content h4 {
  font-size: 13px;
}

.rich-text-node-content h5 {
  font-size: 12px;
}

.rich-text-node-content h6 {
  font-size: 11px;
}

.rich-text-node-content p {
  margin: 0 0 6px 0;
}

.rich-text-node-content ul,
.rich-text-node-content ol {
  margin: 0 0 6px 0;
  padding-left: 16px;
}

.rich-text-node-content li {
  margin-bottom: 2px;
}

.rich-text-node-content strong {
  font-weight: 600;
  color: #262626;
}

.rich-text-node-content em {
  font-style: italic;
  color: #595959;
}

.rich-text-node-content code {
  background: #f0f0f0;
  padding: 1px 3px;
  border-radius: 2px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 11px;
}

.rich-text-node-content pre {
  background: #f0f0f0;
  padding: 6px;
  border-radius: 3px;
  overflow-x: auto;
  margin: 6px 0;
  font-size: 11px;
}

.rich-text-node-content pre code {
  background: none;
  padding: 0;
}

.rich-text-node-content blockquote {
  border-left: 3px solid #1890ff;
  padding-left: 8px;
  margin: 6px 0;
  color: #595959;
  font-style: italic;
}

.rich-text-node-content a {
  color: #1890ff;
  text-decoration: none;
}

.rich-text-node-content a:hover {
  text-decoration: underline;
}

/* 滚动条样式 */
.rich-text-node-content::-webkit-scrollbar {
  width: 4px;
}

.rich-text-node-content::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 2px;
}

.rich-text-node-content::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 2px;
}

.rich-text-node-content::-webkit-scrollbar-thumb:hover {
  background: #bfbfbf;
}



[data-shape="markdown-node"] {
  foreignObject {
    overflow: auto;

  }
}